#include "mainwindow.h"
#include <QApplication>
#include <QDesktopWidget>
#include <QTranslator>
#include <QTextCodec>

int main(int argc, char *argv[])
{

    Q_INIT_RESOURCE(app);
    QApplication a(argc, argv);

    QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
    QTranslator translator;
    if (translator.load(":/chinese.qm"))
        a.installTranslator(&translator);
    MainWindow w;
    w.showMaximized();
    return a.exec();
}
